/*
 * @Author: OreoWang
 * @Email: ihc523@163.com
 * @Date: 2022-03-22 21:47:14
 * @LastEditors: OreoWang
 * @LastEditTime: 2022-04-19 14:52:02
 * @Description: 节点附加元素。元素只能附加到 entity 节点上。
 */

import { BehaviorNode } from "./behavior-node"
import { BehaviorStatus } from "./behavior-status"

export class BehaviorElement extends BehaviorNode {
    execute(status: BehaviorStatus) {
        status = this.update(status);
        this.status = status = super.execute(status);
        return status;
    }
}